package org.electrical.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class EleOrder implements Serializable {

    private Integer orderId;
    private String orderNumber;
    private String customerId;
    private String address;
    private Integer totalSum;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date orderDate;
    private Integer state;

    private EleDictionary eleDictionary;
    private EleCustomer eleCustomer;

    public EleCustomer getEleCustomer() {
        return eleCustomer;
    }

    public void setEleCustomer(EleCustomer eleCustomer) {
        this.eleCustomer = eleCustomer;
    }

    public EleDictionary getEleDictionary() {
        return eleDictionary;
    }

    public void setEleDictionary(EleDictionary eleDictionary) {
        this.eleDictionary = eleDictionary;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getTotalSum() {
        return totalSum;
    }

    public void setTotalSum(Integer totalSum) {
        this.totalSum = totalSum;
    }

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

}
